/**
 * ClassName: Java03_Object
 * Package: PACKAGE_NAME
 * DESCRIPTION:
 *
 * @Author 程翎钥
 * @Create 2024/3/22 15:43
 * @Version 1.0
 */
public class Java03_Object {
    public static void main(String[] args) {
        Cat c1 = new Cat();
        c1.name = "二十";
        c1.cat();
        Per p1 = new Per();
        p1.name = "千玺";
        p1.per();
    }
}
class Cat {
    String name;
    void cat() {
        System.out.println(name + "在上课");
    }
}
class Per {
    String name;
    void per() {
        System.out.println(name + "在听课");
    }
}
